Skip to content

fix(deepdata): correct Zback channel in sort(), change int pixel to int64_t#5241

Open
luna-y-kim wants to merge 1 commit into
AcademySoftwareFoundation:mainfrom
luna-y-kim:fix-deepdata
Open

fix(deepdata): correct Zback channel in sort(), change int pixel to int64_t#5241
luna-y-kim wants to merge 1 commit into
AcademySoftwareFoundation:mainfrom
luna-y-kim:fix-deepdata

Conversation

@luna-y-kim

@luna-y-kim luna-y-kim commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Description

→ The srcpixel param of DeepData::merge_deep_pixels() also needs to be fixed from int to int64_t, but it breaks compatibility for programs already built (ABI check fail), so it is left as int for now. The issue is submitted (#5242).

Tests

Modified the DeepData::sort test to include samples with a tied front Z, so it verifies the Zback fallback.

Checklist:

  • I have read the guidelines on contributions and code review procedures.
  • I have read the Policy on AI Coding Assistants
    and if I used AI coding assistants, I have an Assisted-by: TOOL / MODEL
    line in the pull request description above.
  • (N/A) I have updated the documentation if my PR adds features or changes
    behavior.
  • I am sure that this PR's changes are tested in the testsuite.
  • I have run and passed the testsuite in CI before submitting the
    PR, by pushing the changes to my fork and seeing that the automated CI
    passed there. (Exceptions: If most tests pass and you can't figure out why
    the remaining ones fail, it's ok to submit the PR and ask for help. Or if
    any failures seem entirely unrelated to your change; sometimes things break
    on the GitHub runners.)
  • My code follows the prevailing code style of this project and I
    fixed any problems reported by the clang-format CI test.
  • (N/A) If I added or modified a public C++ API call, I have also amended the
    corresponding Python bindings. If altering ImageBufAlgo functions, I also
    exposed the new functionality as oiiotool options.

…nt64_t

- Fix sort() using the front Z channel instead of Zback channel.
- Widen pixel indices from int to int64_t (leftover from AcademySoftwareFoundation#2363).
- Cleanup unreachable branches in merge_overlaps().

Signed-off-by: Luna Kim <177369799+luna-y-kim@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant